import { SubscriptionAPI } from 'dva';
import { RouteComponentProps } from 'dva/router';
import { IGlobal } from '../../../Model/GlobalModel';

export interface IProps
  extends SubscriptionAPI,
    RouteComponentProps<{
      doctorId: string;
      name: string;
    }> {
  global: IGlobal;
}

export interface IState {
  data: IListResult;
  filter: {
    pageNum: number;
    pageSize: number;
  };
}
export interface IListResult {
  records: INotify[];
  current: number;
  pages: number;
  size: number;
  total: number;
}
export interface INotify {
  id: number;
  title: string;
  sysMsgType: number;
  treatmentTime: string;
  status: number;
  result: number;
}
export interface IMessageType {
  [key: number]: ITypeItem;
}

export interface ITypeItem {
  name: string;
  class: string;
}
